package com.designpattern.strategy;

import com.designpattern.strategy.symbol.Symbol;

public class Calculator {

    private Symbol symbol;

    public Calculator(Symbol symbol) {
        this.symbol = symbol;
    }

    public Double execute(Double a, Double b) {
        return symbol.exec(a, b);
    }
}
